package com.padakeji.android.pworks.content;

import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;

import java.util.Map;

/**
 * Created by atanl on 2015/10/21.
 */
public class OkHttpClientWrapper implements PadaHttpClient {

    private OkHttpClient mClient;

    public OkHttpClientWrapper() {
        mClient = new OkHttpClient();
    }

    @Override
    public String get(String url, Map<String, String> header) {
        Request.Builder builder = new Request.Builder().url(url);
        if (header != null && header.size() != 0) {
            for (Map.Entry<String, String> e : header.entrySet()) {
                builder.header(e.getKey(), e.getValue());
            }
        }
        Request request = builder.build();

        return null;
    }

    @Override
    public <T> T get(String url, Map<String, String> header, Class<T> c) {

        return null;
    }

    @Override
    public String get(String url, Map<String, String> header, Callback<String> callback) {
        return null;
    }

    @Override
    public <T> void get(String url, Map<String, String> header, Class<T> c, Callback<T> callback) {

    }

}
